package com.heima.wemedia.controller;
import com.heima.common.dto.ResponseResult;
import com.heima.wemedia.dto.WmLoginDto;
import com.heima.wemedia.service.IWmUserService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("login")
public class LoginController {
    @Autowired
    private IWmUserService iWmUserService;
    @PostMapping("/in")
    @ApiOperation(value = "登录", notes = "author:mcm")
    public ResponseResult login(@RequestBody WmLoginDto dto){
        return iWmUserService.login(dto);
    }


}
